package cn.gz.ibix.bean;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 项目名称：YiDianCan
 * <br>类描述：
 * <br>创建人：htliu
 * <br>创建时间：2017/9/14 17:49
 * <br>修改人:
 * <br>修改时间：2017/9/14 17:49
 * <br>修改备注：
 * <br>@version
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(of = "id")
public abstract class BaseFood implements Serializable {

    protected long id;

    protected String name;


    protected String price;

    protected String reducedPrice;

    protected Integer singleDiscount;

    protected Boolean allowDiscount;


    protected Long sellCount;

    protected Set<FileData> images = new HashSet<>();

    protected String score;

    protected String description;
    protected Set<FoodType> foodTypeList = new HashSet<>();

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getReducedPrice() {
        return reducedPrice;
    }

    public void setReducedPrice(String reducedPrice) {
        this.reducedPrice = reducedPrice;
    }

    public Integer getSingleDiscount() {
        return singleDiscount;
    }

    public void setSingleDiscount(Integer singleDiscount) {
        this.singleDiscount = singleDiscount;
    }

    public Boolean getAllowDiscount() {
        return allowDiscount;
    }

    public void setAllowDiscount(Boolean allowDiscount) {
        this.allowDiscount = allowDiscount;
    }

    public Long getSellCount() {
        return sellCount;
    }

    public void setSellCount(Long sellCount) {
        this.sellCount = sellCount;
    }

    public Set<FileData> getImages() {
        return images;
    }

    public void setImages(Set<FileData> images) {
        this.images = images;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Set<FoodType> getFoodTypeList() {
        return foodTypeList;
    }

    public void setFoodTypeList(Set<FoodType> foodTypeList) {
        this.foodTypeList = foodTypeList;
    }
}
